package com.sino.operation.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sino.operation.entity.BizCityServiceCode;
import com.sino.operation.mapper.BizCityServiceCodeMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sino.operation.service.BizCityServiceCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author admin
 * @since 2021-10-07
 */
@Service
public class BizCityServiceCodeServiceImpl extends ServiceImpl<BizCityServiceCodeMapper, BizCityServiceCode> implements BizCityServiceCodeService {
    @Autowired(required = false)
    private BizCityServiceCodeMapper bizCityServiceCodeMapper;

    @Override
    public IPage<BizCityServiceCode> selectList(Map<String, String> map) {
        QueryWrapper<BizCityServiceCode> wrapper = new QueryWrapper<>();
        return bizCityServiceCodeMapper.selectPage(new Page<>(Integer.parseInt(map.get("current")), Integer.parseInt(map.get("size"))), wrapper);
    }

}
